package study.stream.分支合并并行求和;

import static study.Utils.measureSumPerf;

/**
 * @Author 金贵权
 * @Date 2023/6/27 9:28
 **/
public class Demo01 {
    public static void main(String[] args) {
        long result = measureSumPerf(ForkJoinSumCalculator::forkJoinSum,10_000_000);
        System.out.println("测试结果" + result + "ms");
        System.out.println(System.nanoTime());
    }
}
